
import React from 'react'
import Mock from "mockjs"

let data=Mock.mock({
    "list|5":[{
        id:"@id",
        "img":"@image(100x100,@color)",
        "text":"@ctitle(30)",
        child:[{
            "id":"@id",
            "img":"@image(100x100,@color)",
            "title":"@ctitle"
        }]
    }]
})
export default function list() {
  return (
    <ul>{
        data.map((item,index)=>{
            return  <li>{item.text}
            {
                item.child.map((i)=>{
                    return <p> <img src={i.img}/>  {item.title} </p>

                })
            }
            
            
            </li>
        })

        
        
        
        }</ul>
  )
}

